package com.sie.demo.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;

/**
 * @author liaozhifeng
 * @date 2021/8/9 10:12
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("user_role")
public class UserRole {
    @TableId("user_role_id")
    private  long userRoleId;
    private  long userId;
    private long roleId;
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;


}
